//
//  SLNearlyCollectionViewCell.h
//  StarLight
//
//  Created by Duke.wu on 16/5/16.
//  Copyright © 2016年 Duke.Wu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SLNearLyShip.h"




typedef NS_ENUM(NSUInteger, NearlyCellType) {
  NearlyCellTypeShip, //  船 － 货主版
  NearlyCellTypeProduct, // 货 － 船主版
};


@protocol SLNearlyCollectionViewCellDelegate <NSObject>

- (void)currentBtnWasTapedWithShipModel:(SLNearLyShip *)shipModel;

@end


@interface SLNearlyCollectionViewCell : UICollectionViewCell


@property (nonatomic, weak)id<SLNearlyCollectionViewCellDelegate> delegate;

- (void)configWithType:(NearlyCellType)type;

- (void)configNearlyCellWithShipModel:(SLNearLyShip *)shipModel;

- (void)configNearlyCellWithProductModel:(SLNearLyProduct *)productModel;


@property (nonatomic, strong) UIButton *rightBtn;
/**当船主显示时候显示货    货主显示船名*/
@property (nonatomic, strong) UILabel *lfTopLB;
/**多少时间之前*/
@property (nonatomic, strong) UILabel *sinceTimeLB;
/**船主 - 起点     货主 - 船状态*/
@property (nonatomic, strong) UILabel *lfSecLB;
/**当船主显示时候显示起点     货主显示船状态*/
@property (nonatomic, strong) UILabel *lfThidLB;
/**船主 - 截止日期     货主 - 当前位置*/
@property (nonatomic, strong) UILabel *lfForthLB;
/**获取数据 船主 - 运输截止日期     货主 - 船当前位置*/
@property (nonatomic, strong) UILabel *lfFifLB;
/**船主 - 终点  货主 - 装载量*/
@property (nonatomic, strong) UILabel *rgSecLB;
/**获取数据 船主 - 终点  货主 - 装载量*/
@property (nonatomic, strong) UILabel *rgThidLB;
/**距离你*/
@property (nonatomic, strong) UILabel *rgForthLB;
/**获取数据， 距离你*/
@property (nonatomic, strong) UILabel *rgFifLB;
/**船主 － 重量*/
@property (nonatomic, strong) UILabel *weightLB;
/**重量*/
@property (nonatomic, strong) UILabel *currrntWeiLB;
/**船主当前位置*/
@property (nonatomic, strong) UIButton *currentLocBtn;
/**船状态*/
@property (nonatomic, strong) UIImageView *shipStatusImageView;
/**cell类型*/
@property (nonatomic, assign) NearlyCellType cellType;

@property (nonatomic, strong) UIImageView *midImageView;

@property (nonatomic, strong) SLNearLyShip *shipModel;

@property (nonatomic, strong) SLNearLyProduct *goodsModel;



@end






